import axios from "@/utils/request.js";

/**
 * 添加比赛
 * @param {*} matchInfo 
 * @returns 
 */
export const matchAddService = (matchInfo) => {
    return axios.post("/matchInfo/add",matchInfo)
}

/**
 * 分页查询比赛信息
 * @returns 
 */
export const matchSelectService = (pageNo,pageSize,matchNameFuzzy,groupNameFuzzy) => {
    return axios.get("/matchInfo/loadDataList",{params:{
        pageNo,pageSize,matchNameFuzzy,groupNameFuzzy
    }})
}

/**
 * 修改比赛信息
 * @param {*} matchInfo 
 * @returns 
 */
export const matchModifyService = (matchInfo) => {
    return axios.put("/matchInfo/updateMatchInfoByMatchId",matchInfo)
}

/**
 * 根据比赛id删除比赛信息
 * @param {*} list 
 * @returns 
 */
export const matchDeleteService = (list) => {
    return axios.post("/matchInfo/deleteMatchInfoByMatchIds",list)
}